import axios from '@/utils/axios';

export function getReports(params) {
  return axios.get('plat/serve/reportRepair/list', { params }).then(res => {
    if (res.code === 1) {
      return res.data;
    } else {
      throw res.msg;
    }
  })
}

export function ProcessReport(params) {
  return axios.get('plat/serve/reportRepair/process', { params }).then(res => {
    if (res.code === 1) {
      return res.data;
    } else {
      throw res.msg;
    }
  })
}
